-- GENERATED SPELL FOR [Bloodspore Firestarter] --


function spell0_25470(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25470', 3000, 1)
end

function spell1_25470(pUnit, Event) --@Flaming Touch,Self--
pUnit:FullCastSpellOnTarget(45985,pUnit)
pUnit:RegisterEvent('Sorts_25470', 666, 1)
end

function spell2_25470(pUnit, Event) --@Molten Armor,n/a--
pUnit:FullCastSpellOnTarget(35916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25470', 604, 1)
end

function Sorts_25470(pUnit, Event)
local choix_sorts_25470 = math.random(0, 2)
if choix_sorts_25470 == 0 then
pUnit:RegisterEvent('spell0_25470', 1, 1)
end
if choix_sorts_25470 == 1 then
pUnit:RegisterEvent('spell1_25470', 1, 1)
end
if choix_sorts_25470 == 2 then
pUnit:RegisterEvent('spell2_25470', 1, 1)
end
end

function mob25470_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25470', math.random(1500, 3000), 1)
end

function mob25470_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25470_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25470_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25470, 1, 'mob25470_Action')
RegisterUnitEvent(25470, 2, 'mob25470_Leave')
RegisterUnitEvent(25470, 3, 'mob25470_Kill')
RegisterUnitEvent(25470, 4, 'mob25470_Die')
